/**
 * 
 */
package xml;

import java.io.File;

import org.w3c.dom.Document;

import xml.beans.Note;

/**
 * @author Jonatan Ivanov
 */
public class Main {

    public static void main(String[] args) throws Exception {
        Document doc = XMLUtils.xml2Document(new File("resources/xml/note.xml"));
        System.out.println(XMLUtils.document2String(doc) + "\n");

        Note note = XMLUtils.xml2Bean(new File("resources/xml/note.xml"), Note.class);
        System.out.println(note + "\n");

        System.out.println(XMLUtils.bean2XML(note) + "\n");
    }
}
